<admintpl file="header" />
</head>
<style>
.tooltip{
	width: 319px;
}
</style>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:U('index')}">{$title}</a></li>
			<li class="active"><a href="#">添加</a></li>
		</ul>
		<form action="{:U('')}" method="post" class="form-horizontal js-ajax-forms" id='commentForm' enctype="multipart/form-data">
			<input type="hidden"  name='id' value='{$_GET[id]}'/>
			<div class="row-fluid">
				<div class="span9">
					<table class="table table-bordered">
						<tr>
							<th width="80">邮箱地址</th>
							<td>
								<input type="text" style="width: 400px;" name="post[email]"  value="{$info.email}" placeholder=""  />
								<span class="form-required">*</span>
							</td>
						</tr>
						<tr>
							<th width="80">姓名</th>
							<td>
								<input type="text" style="width: 400px;" name="post[name]"  value="{$info.name}" placeholder=""  />
								<span class="form-required">*</span>
							</td>
						</tr>
						<tr>
							<th width="80">接收状态</th>
							<td>
								<foreach name='status' item='vo' key='k'>
									<label for="show_{$k}" class="radio inline"><input type="radio" id="show_{$k}" name="post[status]" value="{$k}" {$k==1 ? 'checked' : ''} >{$vo}</label>
								</foreach>
							</td>
						</tr>
					</table>
				</div>
			</div>
			<div class="form-actions">
					<button class="btn btn-primary" type="submit">提交</button>
				<a class="btn" href="{:U('index')}">返回</a>
			</div>
		</form>
	</div>
 	 <script type="text/javascript" src="__PUBLIC__/js/common.js"></script>  
	<script type="text/javascript" src="__PUBLIC__/js/content_addtop.js"></script>
	<script type="text/javascript">
	
	 validateForm({
	      rule:{
	  		'post[email]' : {required : 1},
	  		'post[name]' : {required : 1},
	  		},
	      message:{
			'post[email]' : {required : '请填写邮箱地址'},
			'post[name]' : {required : '请填写姓名'},
		}
	 })	

	 
	</script>
</body>
</html>